/*
 * @Author: gxn
 * @Date: 2020-08-18 22:41:24
 * @LastEditors: gxn
 * @LastEditTime: 2020-08-20 14:17:26
 * @Description: 营业收费
 */
import { finance } from '../servicePath'
export default ({ service, request, serviceForMock, requestForMock, mock, faker, tools }) => ({
  /**
* 日常管理-营业收费-保存退费
* @returns {*}
* @constructor
*/
  admin_customerFee_refund (data) {
    return request({
      url: `${finance}/admin/customerFee/refund`,
      method: 'POST',
      data
    })
  },
  /**
   * 运营收费-用户销户-点击销户按钮
   * @returns {*}
   * @constructor
   */
  admin_refund_tryCancelHouseHold (params) {
    return request({
      url: `${finance}/admin/refund/tryCancelHouseHold`,
      method: 'POST',
      params
    })
  },
  /**
   * 运营收费-用户销户-获取退费账单
   * @returns {*}
   * @constructor
   */
  admin_refund_getRechargeBill (params) {
    return request({
      url: `${finance}/admin/refund/getRechargeBill`,
      method: 'POST',
      params
    })
  },
  /**
   * 运营收费-用户销户-确认退费
   * @returns {*}
   * @constructor
   */
  admin_refund_doRefund (params) {
    return request({
      url: `${finance}/admin/refund/doRefund`,
      method: 'POST',
      params
    })
  }
})
